<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts: esp8266/system.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">ESP8266ILI9341DisplayProject</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_cc2d49507704e901eabd8a82be491fc5.html">esp8266</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">system.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="system_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="user__config_8h.html">user_config.h</a>&quot;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#ifdef AVR</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="system_8h.html">system.h</a>&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="mathio_8h.html">mathio.h</a>&quot;</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#undef calloc</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#undef free</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#undef malloc</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">void</span> * <a class="code" href="system_8c.html#ab750b0b8889cb7d718f12d66f01fd954">_heap_start</a>;</div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">   42</a></span>&#160;<span class="preprocessor">#define HEAP_START  ((uint32_t) &amp; (_heap_start))</span></div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">   43</a></span>&#160;<span class="preprocessor">#define HEAP_END    ((uint32_t) (0x3FFFC000UL - 1UL))</span></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="system_8c.html#a22b308551dea873face80619301d5618">   51</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="system_8c.html#a22b308551dea873face80619301d5618">malloc</a>(<span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;{</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordtype">void</span> *p = (<span class="keywordtype">void</span> *)os_zalloc( size );</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordflow">if</span>(!p)</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    {</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;mcalloc(%d) failed!\n&quot;</span>, size);</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>();</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    }</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordflow">return</span>(p);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;}</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="system_8c.html#ae148919146e88c7c40c7e2f781649b31">   69</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="system_8c.html#ae148919146e88c7c40c7e2f781649b31">calloc</a>(<span class="keywordtype">size_t</span> nmemb, <span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;{</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    <span class="keywordtype">void</span> *p = (<span class="keywordtype">void</span> *)os_zalloc( (nmemb * size) );</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordflow">if</span>(!p)</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;calloc(%d,%d) failed!\n&quot;</span>, nmemb, size);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>();</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    }</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordflow">return</span>(p);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="system_8c.html#a0f8c52d1c359b700088f8417b48e467b">   87</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="system_8c.html#a0f8c52d1c359b700088f8417b48e467b">free</a>(<span class="keywordtype">void</span> *p)</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;{</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;    <span class="keywordflow">if</span>( (<a class="code" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>) p &gt;= <a class="code" href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">HEAP_START</a> \</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        &amp;&amp; (<a class="code" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>) p &lt;= <a class="code" href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">HEAP_END</a>)</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    {</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        os_free((<span class="keywordtype">int</span>) p);</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    }</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;free: FREE ERROR (%08x)\n&quot;</span>, p);</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>();</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;}</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="system_8h.html#a7d3ee70a877e8e98235593af1d92a350">  104</a></span>&#160;<span class="keywordtype">size_t</span> <a class="code" href="system_8c.html#ae5082975001c0e46f84f049e514d9319">freeRam</a>()</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;{</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;     <span class="keywordflow">return</span> ((<span class="keywordtype">size_t</span>) system_get_free_heap_size());</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;}</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="system_8h.html#a685d93545b12079d00ffc678d3611333">  113</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>()</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;{</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Heap Free(%d) bytes\n&quot;</span> , system_get_free_heap_size());</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;Heap Start(%08x), Heap End(%08x), Delta(%d)\n&quot;</span> , </div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <a class="code" href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">HEAP_START</a>, <a class="code" href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">HEAP_END</a>, <a class="code" href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">HEAP_END</a>-<a class="code" href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">HEAP_START</a>);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;}</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="system_8h.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">  128</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(<span class="keywordtype">size_t</span> nmemb, <span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;{</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keywordtype">void</span> *p = <a class="code" href="system_8c.html#ae148919146e88c7c40c7e2f781649b31">calloc</a>(nmemb, size);</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <span class="keywordflow">if</span>(!p)</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    {</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;        <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;safecalloc(%d,%d) failed!\n&quot;</span>, nmemb, size);</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;        <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>();</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;    }</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <span class="keywordflow">return</span>(p);</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;}</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00146"></a><span class="lineno"><a class="line" href="system_8h.html#aca19f0f1e5d805c1e5f61101fa4690f1">  146</a></span>&#160;<span class="keywordtype">void</span> *<a class="code" href="system_8c.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a>(<span class="keywordtype">size_t</span> size)</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;{</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <span class="keywordflow">return</span>(<a class="code" href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a>(size,1));</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;}</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">#ifdef ESP8266</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00165"></a><span class="lineno"><a class="line" href="system_8h.html#a61f06ee340417c629633142e0a5db288">  165</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a>(<span class="keywordtype">void</span> *p)</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;{</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    <span class="keywordflow">if</span>( (<a class="code" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>) p &gt;= <a class="code" href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">HEAP_START</a> \</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        &amp;&amp; (<a class="code" href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a>) p &lt;= <a class="code" href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">HEAP_END</a>)</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    {</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;        <a class="code" href="system_8c.html#a0f8c52d1c359b700088f8417b48e467b">free</a>(p);</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span>;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    <a class="code" href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a>(<span class="stringliteral">&quot;safefree: FREE ERROR (%08x)\n&quot;</span>, p);</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;    <a class="code" href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a>();</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;}</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="system_8h.html#a3d3120b9c1d6fa02648d6e317f0f6e44">  181</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="system_8c.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a>(<span class="keywordtype">void</span>)</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;{</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    system_restart();</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;}</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<a class="code" href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a> </div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="system_8h.html#a9b9f170e9a01e51b57656fcda1f183df">  190</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="system_8c.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a>( <span class="keywordtype">void</span> )</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;{</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;  WRITE_PERI_REG(0x60000914, 0x73);</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;}</div><div class="ttc" id="system_8c_html_ae5082975001c0e46f84f049e514d9319"><div class="ttname"><a href="system_8c.html#ae5082975001c0e46f84f049e514d9319">freeRam</a></div><div class="ttdeci">MEMSPACE size_t freeRam()</div><div class="ttdoc">Return Free memory. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00104">system.c:104</a></div></div>
<div class="ttc" id="system_8c_html_ab750b0b8889cb7d718f12d66f01fd954"><div class="ttname"><a href="system_8c.html#ab750b0b8889cb7d718f12d66f01fd954">_heap_start</a></div><div class="ttdeci">void * _heap_start</div><div class="ttdoc">calloc may be aliased to safecalloc </div></div>
<div class="ttc" id="user__config_8h_html"><div class="ttname"><a href="user__config_8h.html">user_config.h</a></div><div class="ttdoc">Master include file for project Includes all project includes and defines here. </div></div>
<div class="ttc" id="system_8c_html_a3d3120b9c1d6fa02648d6e317f0f6e44"><div class="ttname"><a href="system_8c.html#a3d3120b9c1d6fa02648d6e317f0f6e44">reset</a></div><div class="ttdeci">MEMSPACE void reset(void)</div><div class="ttdoc">reset system </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00181">system.c:181</a></div></div>
<div class="ttc" id="system_8c_html_afed748d7fa3137898a35714f6bb05e4e"><div class="ttname"><a href="system_8c.html#afed748d7fa3137898a35714f6bb05e4e">PrintRam</a></div><div class="ttdeci">MEMSPACE void PrintRam()</div><div class="ttdoc">Display Free memory and regions. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00113">system.c:113</a></div></div>
<div class="ttc" id="system_8c_html_a7437bbfa3a1415a7d91fded74239a762"><div class="ttname"><a href="system_8c.html#a7437bbfa3a1415a7d91fded74239a762">HEAP_END</a></div><div class="ttdeci">#define HEAP_END</div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00043">system.c:43</a></div></div>
<div class="ttc" id="send_8c_html_a435d1572bf3f880d55459d9805097f62"><div class="ttname"><a href="send_8c.html#a435d1572bf3f880d55459d9805097f62">uint32_t</a></div><div class="ttdeci">unsigned int uint32_t</div><div class="ttdef"><b>Definition:</b> <a href="send_8c_source.html#l00019">send.c:19</a></div></div>
<div class="ttc" id="system_8c_html_ae148919146e88c7c40c7e2f781649b31"><div class="ttname"><a href="system_8c.html#ae148919146e88c7c40c7e2f781649b31">calloc</a></div><div class="ttdeci">MEMSPACE void * calloc(size_t nmemb, size_t size)</div><div class="ttdoc">calloc buffer POSIX function </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00069">system.c:69</a></div></div>
<div class="ttc" id="system_8c_html_ae9739bcecd10d5962cc10c12bf01594f"><div class="ttname"><a href="system_8c.html#ae9739bcecd10d5962cc10c12bf01594f">HEAP_START</a></div><div class="ttdeci">#define HEAP_START</div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00042">system.c:42</a></div></div>
<div class="ttc" id="system_8c_html_a0f8c52d1c359b700088f8417b48e467b"><div class="ttname"><a href="system_8c.html#a0f8c52d1c359b700088f8417b48e467b">free</a></div><div class="ttdeci">MEMSPACE void free(void *p)</div><div class="ttdoc">Free buffer POSIX function We only call os_free() is pointer is not null. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00087">system.c:87</a></div></div>
<div class="ttc" id="system_8c_html_aca19f0f1e5d805c1e5f61101fa4690f1"><div class="ttname"><a href="system_8c.html#aca19f0f1e5d805c1e5f61101fa4690f1">safemalloc</a></div><div class="ttdeci">MEMSPACE void * safemalloc(size_t size)</div><div class="ttdoc">Safe Malloc - Display Error message if Malloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00146">system.c:146</a></div></div>
<div class="ttc" id="system_8c_html_a22b308551dea873face80619301d5618"><div class="ttname"><a href="system_8c.html#a22b308551dea873face80619301d5618">malloc</a></div><div class="ttdeci">MEMSPACE void * malloc(size_t size)</div><div class="ttdoc">malloc buffer POSIX function </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00051">system.c:51</a></div></div>
<div class="ttc" id="mathio_8h_html"><div class="ttname"><a href="mathio_8h.html">mathio.h</a></div><div class="ttdoc">Math IO functions, and verious conversion code with floating point support. </div></div>
<div class="ttc" id="cpu_8h_html_ad0fe97585b8891f5e4f2b9a6426330a4"><div class="ttname"><a href="cpu_8h.html#ad0fe97585b8891f5e4f2b9a6426330a4">MEMSPACE</a></div><div class="ttdeci">#define MEMSPACE</div><div class="ttdef"><b>Definition:</b> <a href="cpu_8h_source.html#l00025">cpu.h:25</a></div></div>
<div class="ttc" id="system_8c_html_a9b9f170e9a01e51b57656fcda1f183df"><div class="ttname"><a href="system_8c.html#a9b9f170e9a01e51b57656fcda1f183df">wdt_reset</a></div><div class="ttdeci">MEMSPACE void wdt_reset(void)</div><div class="ttdoc">reset watchdog </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00190">system.c:190</a></div></div>
<div class="ttc" id="mathio_8h_html_ad6078f8da2d30ecaef99e0c2d250c0c8"><div class="ttname"><a href="mathio_8h.html#ad6078f8da2d30ecaef99e0c2d250c0c8">printf</a></div><div class="ttdeci">MEMSPACE int printf(const char *format,...)</div></div>
<div class="ttc" id="system_8h_html"><div class="ttname"><a href="system_8h.html">system.h</a></div><div class="ttdoc">System memory and reset utilities. </div></div>
<div class="ttc" id="system_8c_html_a61f06ee340417c629633142e0a5db288"><div class="ttname"><a href="system_8c.html#a61f06ee340417c629633142e0a5db288">safefree</a></div><div class="ttdeci">MEMSPACE void safefree(void *p)</div><div class="ttdoc">Safe free - Only free a pointer if it is in malloc memory range. We want to try to catch frees of sta...</div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00165">system.c:165</a></div></div>
<div class="ttc" id="system_8c_html_a65ca18fba3d6cdb9ce8ca8040a96e0c5"><div class="ttname"><a href="system_8c.html#a65ca18fba3d6cdb9ce8ca8040a96e0c5">safecalloc</a></div><div class="ttdeci">MEMSPACE void * safecalloc(size_t nmemb, size_t size)</div><div class="ttdoc">Safe Calloc - Display Error message if Calloc fails. </div><div class="ttdef"><b>Definition:</b> <a href="system_8c_source.html#l00128">system.c:128</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 31 2018 21:22:16 for ESP8266 ILI9341 display support code with printf sources, wire-frame viewer and custom fonts by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
